package com.example.demo.common.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("sys_user")
public class SysUser {
    @TableId(value = "id")
    private String id;
    private String name;
    private String loginAccount;
    private String password;
    private String idNo;
    private String phone;
    @TableField(exist = false)
    private String workNo;
    private String gender;
    @TableField(exist = false)
    private String genderName;
    private String organId;
    @TableField(exist = false)
    private String organName;
    private Boolean enabled;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
